<template>
  <div class=""></div>
</template>

<script lang="ts" setup>

const useDebounce=(fn,delay=500)=>{
    let timeoutId;
    return (...args)=>{
        clearTimeout(timeoutId);
        timeoutId=setTimeout(()=>{
            fn.call(this,args)

        },delay)


    }

}

</script>

<style lang="less" scoped>
</style>
